<?php
require_once ('../../public/config/config.php');
require_once ('../class/Book.class.php');

$bookCode = $_POST['bookcode'];

$del = Book::GetByBookCode($bookCode);

if($r = Book::DeleteBook($bookCode)){
	$del->RecordHistory($r);
	echo "删除图书成功 :)";
}else{
	echo "删除图书失败 :(";
}



?>